﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CGOnline.Server.Core;

namespace CGOnline.Server.UserLayer
{
    public class RoomConfig:ConfigBase
    {
        public Identity RoomIdentity { set; get; }
        public RoomConfig(AccessRestrictions ar) : base(ar) { }

        int userMaxNumber=1;
        public int MaxUserNumber
        {
            set{
                userMaxNumber=value;
                OnPropertyChanged("MaxUserNumber");
            }
            get{return userMaxNumber;}
        }

        int maxMessageQueue;
        public int MaxMessageQueue
        {
            set
            {
                maxMessageQueue = value;
                OnPropertyChanged("MaxMessageQueue");
            }
            get { return maxMessageQueue; }
        }
        
        Identity creater;
        public  Identity Creater
        {
            set
            {
                creater = value;
                OnPropertyChanged("Creater");
            }
            get { return creater; }
        }
    }
}
